﻿<RequestSoapHeadersType SetResponseHeaderFromThisFilePath="" xmlns="urn:mockingbird.engine.business.configuration:handlerconfiguration">
  <EchoRequestHeaders>
    <Match RequestHeaderName="RequestHeaderName1">   
      <Xpaths>
        <!--
            <RequestHeaderName1 AnAttribute="SomeAttribValue">
                <SomeElement>SomeValue</SomeElement>
            </RequestHeaderName1>
         -->
        <!--Order is important here, the attribute xpath is first, because the value is position zero {0} in the response-header-xml template-->
        <HeaderValueXpath>*[local-name()='RequestHeaderName1']/@AnAttribute</HeaderValueXpath>
        <HeaderValueXpath>*[local-name()='RequestHeaderName1']/*[local-name()='SomeElement']/text()</HeaderValueXpath>
      </Xpaths>
      <ResponseHeaderXml>
        
        <ResponseHeaderName1 AnAttribute="{0}">
          <SomeElement>{1}</SomeElement>
        </ResponseHeaderName1>
        
      </ResponseHeaderXml>
    </Match>
    <Match RequestHeaderName="RequestHeaderName2">
      <Xpaths>
        <!--
          <RequestHeaderName2 AnAttribute="SomeOtherAttribValue">
              <SomeElement>SomeOtherValue</SomeElement>
          </RequestHeaderName2>
        -->
        <HeaderValueXpath>*[local-name()='RequestHeaderName2']/@AnAttribute</HeaderValueXpath>
        <HeaderValueXpath>*[local-name()='RequestHeaderName2']/*[local-name()='SomeElement']/text()</HeaderValueXpath>
      </Xpaths>
      <ResponseHeaderXml>
        
        <ResponseHeaderName2 AnAttribute="{0}">
          <SomeElement>{1}</SomeElement>
        </ResponseHeaderName2>
        
      </ResponseHeaderXml>
    </Match>
  </EchoRequestHeaders>
</RequestSoapHeadersType>